package com.jamila.scancode.result;

import lombok.Getter;

/**
 * @Description: 统一返回结果状态信息类
 * @CreateTime: 2024-03-30  21:38
 * @Author: JAMILA
 * @Version: 1.0
 */
@Getter
public enum ResultCodeEnum {
    SUCCESS(200,"成功"),
    FAIL(201, "失败"),
    SERVICE_ERROR(2012, "服务异常"),
    DATA_ERROR(204, "数据异常"),
    ILLEGAL_REQUEST(205, "非法请求"),
    REPEAT_SUBMIT(206, "重复提交"),
    ARGUMENT_VALID_ERROR(210, "参数校验异常"),

    LOGIN_AUTH(208, "未登陆"),
    PERMISSION(209, "没有权限"),
    ACCOUNT_ERROR(214, "账号不正确"),
    PASSWORD_ERROR(215, "密码不正确"),
    LOGIN_MOBLE_ERROR( 216, "账号或密码不正确"),
    ACCOUNT_STOP( 217, "账号已停用"),
    NODE_ERROR( 218, "该节点下有子节点，不可以删除"),
    CAPTCHA_ERROR(219, "验证码不存在或验证码错误"),

    FILE_UPLOAD_FAIL(230, "文件上传失败"),
    FILE_NOT_PDF(231, "非PDF文件"),


    MODULE_EXISTED(240, "项目型号已存在"),
    NAME_AND_POWER_EXISTED(241, "项目名称和功率已存在"),

    BASE_STATION_ERROR(250, "基站定位第三方接口访问出错"),
    LAC_OR_CID_ERROR(251, "LAC或CID错误"),

    VERSION_ERROR(260, "版本号格式错误"),

    DICT_LABEL_EXISTED(270, "字典项文本已存在"),

    SIMPLE_PARAMETER_EXISTED(280, "精简参数库已存在"),

    MODULE_NOT_EXISTED(290, "功能模块不存在"),
    OPERATION_NOT_EXISTED(291, "操作不存在"),
    MODULE_OR_OPERATION_ERROR(292, "功能模块或操作不存在");

    private Integer code;

    private String message;

    private ResultCodeEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
